5a4215d33c35b8538d3979f10b56376b954e1f53,plugins/org.jboss.tools.openshift.cdk.server/src/org/jboss/tools/openshift/cdk/server/ui/internal/AbstractLocationSection.java,AbstractLocationSection,chooseFile,#File#Shell#,161
Before Change
protected static File chooseFile(File startingDirectory, Shell shell) {
FileDialog fileDialog = new FileDialog(shell, SWT.OPEN);
if (startingDirectory != null) {
fileDialog.setFilterPath(startingDirectory.getPath());
}
String dir = fileDialog.open();
After Change
FileDialog fileDialog = new FileDialog(shell, SWT.OPEN);
if (startingDirectory != null) {
if( startingDirectory.isFile())
fileDialog.setFilterPath(startingDirectory.getParentFile().getPath());
else
fileDialog.setFilterPath(startingDirectory.getPath());
}
String dir = fileDialog.open();